package com.meilai.project.dto.business.contract;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.dto.base.PageReq;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @author xchen
 * @since 2022-03-02
 */
@Data
public class ContractApplyAmendListDTO extends PageReq {

    @ApiModelProperty("补充协议类型")
    private Integer amend_type;

    @ApiModelProperty(value = "甲方")
    private String part_a;

    @ApiModelProperty(value = "甲方联系方式")
    private String part_a_phone;

    @ApiModelProperty(value = "乙方联系方式")
    private String part_b_phone;

    @ApiModelProperty(value = "合同开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate contract_begin_date;

    @ApiModelProperty(value = "合同结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate contract_end_date;

    @ApiModelProperty(value = "签订日期-开始")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate sign_date_begin;

    @ApiModelProperty(value = "签订日期-结束")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate sign_date_end;

    @ApiModelProperty(value = "其他约定")
    private String memo;

    @ApiModelProperty("查询指定人的列表，如果不传则查全部")
    private Long userId;

    @ApiModelProperty("补充协议状态")
    private Integer mode;

}
